Skip to content

feat: supported attach hint#833

Open
KirillKurdyukov wants to merge 7 commits into
mainfrom
feat-attach-stream
Open

feat: supported attach hint#833
KirillKurdyukov wants to merge 7 commits into
mainfrom
feat-attach-stream

Conversation

@KirillKurdyukov

Copy link
Copy Markdown

No description provided.

@codecov-commenter

codecov-commenter commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.86207% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.99%. Comparing base (f2c742d) to head (80fb11a).

Files with missing lines Patch % Lines
ydb/aio/pool.py 57.14% 1 Missing and 2 partials ⚠️
ydb/pool.py 77.77% 2 Missing ⚠️
ydb/query/session.py 84.61% 1 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (75.86%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #833      +/-   ##
==========================================
- Coverage   81.01%   80.99%   -0.02%     
==========================================
  Files          94       94              
  Lines       12091    12118      +27     
  Branches     1182     1190       +8     
==========================================
+ Hits         9795     9815      +20     
- Misses       1837     1842       +5     
- Partials      459      461       +2     
Flag Coverage Δ
integration 79.06% <75.86%> (-0.02%) ⬇️
unit 46.26% <20.68%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
ydb/aio/query/session.py 88.60% <ø> (-0.15%) ⬇️
ydb/pool.py 83.22% <77.77%> (-0.17%) ⬇️
ydb/query/session.py 90.57% <84.61%> (-0.44%) ⬇️
ydb/aio/pool.py 76.47% <57.14%> (-0.69%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 63 out of 87 changed files in this pull request and generated 2 comments.

Files not reviewed (13)
  • ydb/_grpc/v3/draft/protos/ydb_maintenance_pb2.py: Language not supported
  • ydb/_grpc/v3/draft/protos/ydb_replication_pb2.py: Language not supported
  • ydb/_grpc/v3/draft/protos/ydb_view_pb2.py: Language not supported
  • ydb/_grpc/v3/draft/ydb_replication_v1_pb2.py: Language not supported
  • ydb/_grpc/v3/draft/ydb_view_v1_pb2.py: Language not supported
  • ydb/_grpc/v3/protos/ydb_query_pb2.py: Language not supported
  • ydb/_grpc/v3/protos/ydb_topic_pb2.py: Language not supported
  • ydb/_grpc/v3/ydb_table_v1_pb2.py: Language not supported
  • ydb/_grpc/v4/draft/protos/ydb_maintenance_pb2.py: Language not supported
  • ydb/_grpc/v4/draft/protos/ydb_replication_pb2.py: Language not supported
  • ydb/_grpc/v4/draft/protos/ydb_view_pb2.py: Language not supported
  • ydb/_grpc/v4/draft/ydb_replication_v1_pb2.py: Language not supported
  • ydb/_grpc/v4/draft/ydb_view_v1_pb2.py: Language not supported

Comment thread ydb/pool.py Outdated
Comment on lines +497 to +504
def _pessimize_node(self, node_id: Optional[int]) -> None:
"""Deprioritize the connection attached to the given YDB node."""
if node_id is None or node_id <= 0:
return

connection = self._store.connections_by_node_id.get(node_id)
if connection is not None:
self._on_disconnected(connection)
Comment on lines +147 to +151
self.DescribeExternalDataSource = channel.unary_unary(
'/Ydb.Table.V1.TableService/DescribeExternalDataSource',
request_serializer=protos_dot_ydb__table__pb2.DescribeExternalDataSourceRequest.SerializeToString,
response_deserializer=protos_dot_ydb__table__pb2.DescribeExternalDataSourceResponse.FromString,
_registered_method=True)
@github-actions github-actions Bot removed the SLO label Jun 11, 2026
@github-actions github-actions Bot removed the SLO label Jun 14, 2026
@github-actions

Copy link
Copy Markdown

🌋 SLO Test Results

🟢 2 workload(s) tested — All thresholds passed

Commit: dbe5fee · View run

Workload Thresholds Duration Report
sync-query 🟢 OK 10m 10s 📄 Report
sync-table 🟢 OK 10m 2s 📄 Report

Generated by ydb-slo-action

KirillKurdyukov and others added 5 commits June 29, 2026 12:17
Co-authored-by: Cursor <cursoragent@cursor.com>
Move the missing-node-id check to the session and tighten the connection
pool contract to accept a concrete int node id.

Co-authored-by: Cursor <cursoragent@cursor.com>
Look up node connections under ConnectionsCache lock when
pessimizing after NodeShutdown hints, and strip grpcio-tools
version gates from v6 gRPC stubs so imports work with grpcio>=1.42.0.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore stubs from main and strip grpcio version gates via generate_protoc,
instead of leaving broken conflict markers or truncated files.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restore auto-generated stubs and generate_protoc.py to match main.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants